package com.opentool.web.runner;
import com.opentool.dns.DnsServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@Component
@Order(1)
@Slf4j
public class DnsServerRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments applicationArguments){
        DnsServer dnsServer=new DnsServer();
        dnsServer.start(53);
    }
}
